using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

/****************************************************
// 功能：
// | Talk To [ 聊来改善地区金融服务环境，助力企业发展 ]
// | Copyright (c) 2021-2025 聊来 All rights reserved.
// | Licensed ( <a href="http://www.apache.org/licenses/LICENSE-2.0">聊来</a> )
// | @Author: 贯彻己道的云 <18970881148@qq.com>
// | DateTime: 2025/3/27 19:53:8
*****************************************************/

public class MapRoot : MonoBehaviour
{
    public Transform transCameraRoot;
    public Transform transEnvCollider;

    public Transform blueTower;
    public Transform redTower;
    public Transform blueCrystal;
    public Transform redCrystal;
    public Transform desBlueTower;
    public Transform desRedTower;
    public Transform desBlueCrystal;
    public Transform desRedCrystal;
    

    public void DestroyBlueTower() {
        blueTower.gameObject.SetActive(false);
        desBlueTower.gameObject.SetActive(true);
    }

    public void DestroyRedTower() {
        redTower.gameObject.SetActive(false);
        desRedTower.gameObject.SetActive(true);
    }
    public void DestroyBlueCrystal() {
        //blueCrystal.gameObject.SetActive(false);
        desBlueCrystal.gameObject.SetActive(true);
    }
    public void DestroyRedCrystal() {
        //redCrystal.gameObject.SetActive(false);
        desRedCrystal.gameObject.SetActive(true);
    }
}
